﻿using Calimbra.Runtime.Contracts;

namespace Calimbra.Runtime.Data
{
    public class Stream : IStream
    {
        public Stream(string fromPortName, string toPortName)
            : this(new Port(fromPortName), new Port(toPortName))
        {
        }

        public Stream(IPort fromPort, IPort toPort)
        {
            FromPort = fromPort;
            ToPort = toPort;
        }

        #region IStream Members

        public IPort FromPort { get; private set; }
        public IPort ToPort { get; private set; }

        #endregion
    }
}